home *** CD-ROM | disk | FTP | other *** search
/ Informática Multimedia 1995 April / Informatica Multimedia CD - Epimundo.iso / DOS / FILECOPY / DAB140.ZIP / DAB.DOC < prev    next >
Encoding:
Text File  |  1994-01-02  |  7.1 KB  |  212 lines

  1. DAB (Delete All But) (C) Copyright 1989,1994 by Scott R. Anderson
  2.                      ALL RIGHTS RESERVED
  3.  
  4.  
  5. 01/02/94 Version 1.40
  6.  
  7.  
  8. Introduction
  9. ------------
  10. This is a utility designed to supplement DOS's delete command.  Many times
  11. I've run into a situation where I wanted to delete everything in a directory
  12. EXCEPT one or two files.  This is impossible to accomplish with DOS's delete
  13. command.  Several ways around this problem are certainly possible, but all
  14. are relatively clumsy.  So, the solution was DAB.
  15.  
  16.  
  17. If you have any problems, suggestions, or comments contact:
  18.  
  19.         Scott Anderson
  20.         P.O. Box 38145
  21.         Tallahassee, FL  32315
  22.  
  23.         or Compuserve 71600,2704
  24.  
  25. *Please* let me know if you like this and/or find it useful!
  26.  
  27. If you use this program on a regular basis, $5 would be greatly appreciated.
  28.  
  29.  
  30.  
  31. Software License and Disclaimer
  32. -------------------------------
  33.  
  34. You are free to use, copy, and distribute DAB if:
  35.  
  36.    - No fee is charged for use, copying, or distribution
  37.    - It is not modified in any fashion
  38.  
  39.  
  40. I HEREBY DISCLAIM ALL WARRANTIES RELATING TO THIS SOFTWARE, WHETHER EXPRESS
  41. OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OF 
  42. MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  I WILL NOT BE LIABLE
  43. FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, INDIRECT OR SIMILAR DAMAGES DUE
  44. TO LOSS OF DATA OR ANY OTHER REASON, EVEN IF I HAVE BEEN ADVISED OF THE
  45. POSSIBILITY OF SUCH DAMAGES.  THE PERSON USING THE SOFTWARE BEARS ALL RISK
  46. AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE.
  47.  
  48.  
  49. Setup
  50. -----
  51.  
  52. Just put DAB in somewhere in your path and it's ready to go!  DAB must be
  53. used on a 386 or better CPU.
  54.  
  55.  
  56. Command syntax
  57. --------------
  58.  
  59. DAB [/srhc] [filename1 filename2 filename3 filenameN]
  60.  
  61. DAB without parameters displays command summary.
  62.  
  63.     [/srhc] optional switches.  "/" is mandatory if a switch is used.
  64.  
  65.         s - Suppresses file displays.  No confirmation prompt is given.
  66.             Intended for use with batch files.  Be cautious with this
  67.             option.
  68.  
  69.         r - Affects read-only files in addition to others.
  70.  
  71.         h - Affects hidden files in addition to others.
  72.         
  73.         c - Color displays.
  74.  
  75.     [FilenameN] Optional filenames.  Any filename can be used,
  76.             including wildcards.  Each filename must be separated by one or
  77.             more spaces.  DAB does NOT support full drives/pathnames.  In
  78.             other words it works only for files in the current directory.
  79.  
  80. Examples:
  81.  
  82.     dab abcxyz.exe
  83.  
  84.     dab *.com xyz.txt abcxyz.exe
  85.  
  86.     dab *.com xyz.*
  87.  
  88.     dab ?bcxyz.* a*.com
  89.  
  90.     dab /s abcxyz.exe  (no file display/confirmation!)
  91.  
  92.     dab *.exe /s  (no file display/confirmation!)
  93.  
  94.     dab /r abcxyz.exe  (read-only files are deleted too)
  95.  
  96.     dab /h a??xyz.exe  (hidden files are deleted too)
  97.  
  98.     dab /rsh *.?xt (no file display/confirmation!, read-only and hidden files
  99.                     are deleted too)
  100.  
  101.     dab *.?xt /r /h (read-only and hidden files are deleted too)
  102.  
  103.  
  104. Operation
  105. ---------
  106.  
  107. DAB will display a list of files it proposes to delete.  Then confirmation
  108. is requested from you.  If confirmation is received the files are deleted.
  109. Nothing will be affected if you do not confirm the files to be deleted.
  110.  
  111. DAB is only going to work on the current directory.  This was originally
  112. intended as a safety feature, however, subdirectories may be added in the
  113. future.
  114.  
  115. For batch file operation, use the /s switch.  Remember that this will 
  116. suppress any error messages and/or confirmation.  Use with caution!
  117.  
  118.  
  119. Notes
  120. -----
  121.  
  122. DAB has only been tested with MSDOS.  Other versions of DOS may or may not
  123. be compatible.
  124.  
  125. DAB generally has the same wildcard expansion that DOS's delete
  126. command has with the following exception: "dab *.*" will delete all
  127. files without an extension ("dab *" will delete all files with an
  128. extension).
  129.  
  130. Only the first 12 characters of any filename on the command line will
  131. be used. This is the maximum legal size of a DOS filename.  Any additional
  132. characters will be ignored.
  133.  
  134. Normally only files with no special attribute will be affected.  Ie.,
  135. read-only, hidden, system, and subdirectory files will not be affected.  If
  136. the /r switch is present any read-only files in the current directory will
  137. also be affected.  Read-only files are only displayed if this switch is
  138. present.  If the /h switch is present any hidden files in the current
  139. directory will also be affected.  Hidden files are only displayed if this
  140. switch is present.  Subdirectory and system files within the current
  141. directory will never be affected.
  142.  
  143. The environment variable "DAB" has been added to make it easier to have
  144. semi-permanent switches, rather than enter switches every time.  Just use
  145. the normal set statement syntax and add the variable "DAB" to the environment.
  146. Any switches present will always affect the operation of DAB.  For example,
  147. "DAB=s" would mean that every time DAB is run no displays or confirmation
  148. would be given.
  149.  
  150. If the /c switch is used, all the displays will be in color.  This color
  151. should be compatible with all CGA, EGA, and VGA monitors.
  152.  
  153. CTRL-BREAK (CTRL-C) will abort the program when DAB is operating.
  154.  
  155. The exit (errorlevel) code used in batch files will be set as follows:
  156.     0) successful completion
  157.     1) no files deleted
  158.     2) error
  159.  
  160. Quick Unerase in Norton Utilities Advanced Edition 4.5 will successfully
  161. unerase any files DAB deletes.
  162.  
  163.  
  164.  
  165. Change history
  166. --------------
  167.  
  168.     version 1.00 8/23/89
  169.       - preliminary release (no public distribution)
  170.  
  171.     version 1.10 9/23/89
  172.       - first public distribution
  173.  
  174.     version 1.20 10/11/89
  175.       - no bugs reported, none fixed
  176.       - some changes/additions to the documentation
  177.       - changed software license
  178.       - added disclaimer
  179.       - added "No confirmation" message
  180.       - added /r switch
  181.       - added /h switch
  182.       - changed so that it did not display read-only files unless /r switch
  183.         is present
  184.       - changed to show when each file is displayed if it is read-only and/or
  185.         hidden
  186.       - added "Deleting" message, each period is one file deleted
  187.       - changed total calculation and display to show number of files deleted
  188.         out of total number of files considered for deletion
  189.       - added environment variable "DAB" to hold semi-permanent switches
  190.       - added flushing keyboard buffer before confirmation
  191.       - converted from TurboC 2.0 to Microsoft C 5.1
  192.  
  193.     version 1.30 12/19/89
  194.       - no bugs reported, none fixed
  195.       - some changes/additions to the documentation
  196.       - added suppressing cursor
  197.       - added DOS version check
  198.       - changed exit codes
  199.       - added version date
  200.       - added color, /c switch
  201.  
  202.     version 1.31 07/09/91
  203.       - fixed bug to allow DAB to operate with DOS 5.X
  204.  
  205.     version 1.40 01/04/94
  206.       - no bugs reported, none fixed
  207.       - some changes/additions to the documentation
  208.       - removed DOS version check
  209.       - compiled with Microsoft Visual C++ 1.0 Professional Edition
  210.       - compiled for 386 or above processor
  211.  
  212.